package com.example.qincetest

import android.app.Application
import com.example.qincetest.lifecycle.AppActivityLifecycleCallbacks
import com.example.qincetest.network.OkHttpConfig
import com.example.qincetest.frame.base.BaseApplication
import timber.log.Timber

class MyApplication: BaseApplication() {
    companion object {
        lateinit var instance: Application
   }

    override fun onCreate() {
        instance = this
        super.onCreate()
        OkHttpConfig.init(this)
        Timber.plant(Timber.DebugTree())
        registerActivityLifecycleCallbacks(AppActivityLifecycleCallbacks())
    }
}